package com.kefu.call.service;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.google.common.collect.Maps;
import com.kefu.call.mapper.CallInnumberMapper;
import com.kefu.call.model.CallInnumber;
import com.kefu.common.context.KefuContext;
import com.kefu.common.service.AbstractKefuService;
import com.kefu.common.vo.DetailVo;

/**
 * @author CodeGenerator
 * @date 2022/07/24
 */
@Service
public class CallInnumberService  extends AbstractKefuService<CallInnumber> {
    @Autowired
    protected CallInnumberMapper callInnumberMapper;

	public List<CallInnumber> selectAvailableList(DetailVo detailVo) {
		String tenantId=KefuContext.getTid();
		Map<String,Object> param=Maps.newHashMap();
		param.put("tenantId", tenantId);
		param.put("ivrId", detailVo.getId());
		
		return callInnumberMapper.selectAvailableList(param);
	}

}
